This datapack is made for the Dungeon map, and works with conjunction with the 'Dungeons' datapack.
Still this can be used with the 'YouKnowWhen lib (rng, damage, mrcd, countdown, olink, ykw, minecraft)', 'Minecraft-Ray-Collision-Detector-master' and 'Dungeons Effects' datapacks to have the enemies and bosses. And also Dungeons Resourcepack, for the textures and sounds.

Flags when spawning a mob:
 - Is cursed (scoreboard summon_cursed EB_generic)
        0   not cursed
        1   cursed
       -1   depending on global curse (default)

 - Spawned by a boss (scoreboard boss_spawn EB_generic)
        0   no (default)     
        1   yes

 - Count mob spawn:
        0   no
        1   yes (default)